<?php

namespace Modules\Article\Database\Seeders;

use Illuminate\Database\Seeder;
use Illuminate\Database\Eloquent\Model;
use Modules\Article\Entities\Category;
use Modules\Article\Entities\Content;

class ContentSeederTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        Model::unguard();
        Category::query()->insert([
            ['name' => '科技', 'pid' => 0],
            ['name' => '人文', 'pid' => 0],
            ['name' => '游戏', 'pid' => 0],
            ['name' => '体育', 'pid' => 0],
        ]);
        factory(Content::class,60)->create();

        // $this->call("OthersTableSeeder");
    }
}
